import cv2
import numpy as np
img = cv2.imread("1.png")
if img is None:
    print("无法读取图片，请检查文件路径或文件完整性！")
else:
    img_resized = cv2.resize(img, (400, 550))
    cv2.imshow("showing", img_resized)
    cv2.waitKey(0)
    m = np.ones(img_resized.shape, dtype="uint8") * 100
    result = cv2.add(img_resized, m)
    cv2.imshow("showing2", result)
    cv2.waitKey(0)